/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

Ext.onReady(function(){
var objectsTree = new Ext.tree.TreePanel ({
                width: 225,
                rootVisible:true,
                renderTo : "mainTree",
                autoScroll :true,
                border : false,
                bodyBorder:false,
                root: new Ext.tree.AsyncTreeNode({
                        expanded: true,
                        text: curDB,
                        iconCls:"database-ico"
                }),
                dataUrl: '/source/db/db.php?act=getObjects'
        });
objectsTree.render();
});